<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>收入报表</title>
    <link rel="stylesheet" type="text/css" href="../css/aui.css">
    <link rel="stylesheet" type="text/css" href="../css/aui-slide.css">
    <link rel="stylesheet" type="text/css" href="../css/center.css">
    <link rel="stylesheet" type="text/css" href="../css/common.css">
</head>
<body style="background:#fff;">
<!-- 顶部 -->
<header class="aui-bar aui-bar-nav bg_color tb_top_bar jb">
    <div class="aui-title"></div>
    <!-- <a class="aui-pull-right aui-btn aui-btn-outlined">
        <img src="../image/bb.png" style="width:1rem">
    </a> -->
</header>
<!-- 顶部end -->
<!-- 头部 -->
<div class="srbb_top_bar bg_color jb">
     <div class="srbb_top_round1">
         <div class="srbb_top_round2">
              <p id="total">0</p>
              <span class="aui-font-size-12">通过淘客宝总收益</span>
         </div>
     </div>
</div>
<!-- 头部 end -->
<!-- 收益 -->
<section class="aui-grid srbb_sy">
 <div class="aui-row">
    <div class="aui-col-xs-6">
        <span id="total_my">0</span>
        <div class="aui-grid-label">我的订单收益</div>
    </div>
    <div class="aui-col-xs-6">
        <span id="total_td">0</span>
        <div class="aui-grid-label">我的团队收益</div>
    </div>
 </div>
</section>
<!-- 收益end -->
<!-- 我的订单收益 -->
<div class="srbb_dd_bar">
    <div class="aui-info">
         <div class="aui-info-item">
             <img src="../image/tit_left.png">
             <div class="aui-margin-l-5">我的订单收益</div>
         </div>
    </div>
    <div class="aui-row srbb_dd_con">
        <div class="aui-col-xs-4">
            <div class="aui-card-list">
                <div class="aui-card-list-header tit_bg01">
                    淘宝
                </div>
                <div class="aui-card-list-content">
                   <div class="srbb_round srbb_round_brc01 aui-margin-t-10">
                      <div class="srbb_round_con">
                         <p class="aui-font-size-12">预估收入</p>
                         <p class="fcpink" id="my_tb">0</p>
                      </div>
                   </div>
                </div>
                <div class="aui-card-list-footer">
                    <p>订单数</p>
                    <p class="fcpink" id="my_tb_num">0个</p>
                </div>
            </div>
        </div>
        <div class="aui-col-xs-4">
            <div class="aui-card-list">
                <div class="aui-card-list-header tit_bg02">
                    京东
                </div>
                <div class="aui-card-list-content">
                   <div class="srbb_round srbb_round_brc02 aui-margin-t-10">
                      <div class="srbb_round_con">
                         <p class="aui-font-size-12">预估收入</p>
                         <p class="fcpink" id="my_jd">0</p>
                      </div>
                   </div>
                </div>
                <div class="aui-card-list-footer">
                    <p>订单数</p>
                    <p class="fcpink" id="my_jd_num">0个</p>
                </div>
            </div>
        </div>
        <div class="aui-col-xs-4">
            <div class="aui-card-list">
                <div class="aui-card-list-header tit_bg03">
                    拼多多
                </div>
                <div class="aui-card-list-content">
                   <div class="srbb_round srbb_round_brc03 aui-margin-t-10">
                      <div class="srbb_round_con">
                         <p class="aui-font-size-12">预估收入</p>
                         <p class="fcpink" id="my_pdd">0</p>
                      </div>
                   </div>
                </div>
                <div class="aui-card-list-footer">
                    <p>订单数</p>
                    <p class="fcpink" id="my_pdd_num">0个</p>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- 我的订单收益end -->
<!-- 团队订单收益 -->
<div class="srbb_dd_bar">
    <div class="aui-info">
         <div class="aui-info-item">
             <img src="../image/tit_left.png">
             <div class="aui-margin-l-5">团队订单收益</div>
         </div>
    </div>
    <div class="aui-row srbb_dd_con">
        <div class="aui-col-xs-4">
            <div class="aui-card-list">
                <div class="aui-card-list-header tit_bg01">
                    淘宝
                </div>
                <div class="aui-card-list-content">
                   <div class="srbb_round srbb_round_brc01 aui-margin-t-10">
                      <div class="srbb_round_con">
                         <p class="aui-font-size-12">预估收入</p>
                         <p class="fcpink" id="td_tb">0</p>
                      </div>
                   </div>
                </div>
                <div class="aui-card-list-footer">
                    <p>订单数</p>
                    <p class="fcpink" id="td_tb_num">0个</p>
                </div>
            </div>
        </div>
        <div class="aui-col-xs-4">
            <div class="aui-card-list">
                <div class="aui-card-list-header tit_bg02">
                    京东
                </div>
                <div class="aui-card-list-content">
                   <div class="srbb_round srbb_round_brc02 aui-margin-t-10">
                      <div class="srbb_round_con">
                         <p class="aui-font-size-12">预估收入</p>
                         <p class="fcpink" id="td_jd">0</p>
                      </div>
                   </div>
                </div>
                <div class="aui-card-list-footer">
                    <p>订单数</p>
                    <p class="fcpink" id="td_jd_num">0个</p>
                </div>
            </div>
        </div>
        <div class="aui-col-xs-4">
            <div class="aui-card-list">
                <div class="aui-card-list-header tit_bg03">
                    拼多多
                </div>
                <div class="aui-card-list-content">
                   <div class="srbb_round srbb_round_brc03 aui-margin-t-10">
                      <div class="srbb_round_con">
                         <p class="aui-font-size-12">预估收入</p>
                         <p class="fcpink" id="td_pdd">0</p>
                      </div>
                   </div>
                </div>
                <div class="aui-card-list-footer">
                    <p>订单数</p>
                    <p class="fcpink" id="td_pdd_num">0个</p>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- 团队订单收益end -->
</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="../script/zepto.min.js" ></script>
<script type="text/javascript" src="../script/common.js" ></script>
<script type="text/javascript">
    apiready = function(){
        api.parseTapmode();
        getData();
    }
    function getData(){
        _loading2();
        _Ajax(window.APIServer.OrderCount,'post',{values:{}},'json',function(ret){
            _loading2_close();
            //.渲染页面
            if (ret.code==1) {
                $('#total').html(ret.data.total);
                $('#total_my').html(ret.data.total_my);
                $('#total_td').html(ret.data.total_td);

                $('#my_tb').html(ret.data.my_tb);
                $('#my_tb_num').html(ret.data.my_tb_num);
                $('#my_jd').html(ret.data.my_jd);
                $('#my_jd_num').html(ret.data.my_jd_num);
                $('#my_pdd').html(ret.data.my_pdd);
                $('#my_pdd_num').html(ret.data.my_pdd_num);

                $('#td_tb').html(ret.data.td_tb);
                $('#td_tb_num').html(ret.data.td_tb_num);
                $('#td_jd').html(ret.data.td_jd);
                $('#td_jd_num').html(ret.data.td_jd_num);
                $('#td_pdd').html(ret.data.td_pdd);
                $('#td_pdd_num').html(ret.data.td_pdd_num);
            }else{
              _toast(ret.msg)
            }

          })
    }
</script>
</html>
